#!/bin/sh

ICON=transmission.png
if [ usr/share/pixmaps/transmission.xpm ] ; then
	ICON=transmission.xpm
fi

cat > usr/share/applications/transmission-gtk.desktop <<EOF
[Desktop Entry]
Name=Transmission BitTorrent client
GenericName=Transmission
Comment=Download and share files over BitTorrent
Exec=transmission-gtk  
Icon=${ICON}
Terminal=false
TryExec=transmission-gtk
Type=Application
MimeType=application/x-bittorrent;
Categories=X-Internet-transfer
EOF

rm -rf usr/bin/transmission-cli \
usr/bin/transmission-create \
usr/bin/transmission-daemon \
usr/bin/transmission-edit \
usr/bin/transmission-remote \
usr/bin/transmission-show \
usr/share/transmission/web \
usr/share/icons/hicolor/256x256
